﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using JT.Data;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;

namespace JT.WEB.Areas.JtSiteAdmin.Controllers
{
    [Area("JtSiteAdmin")]
    public class AboutController : Controller
    {
        private readonly ContextBase _context;

        public AboutController(ContextBase context)
        {
            _context = context;
        }
        public IActionResult Index()
        {
            return View();
        }
        public IActionResult CallUs()
        {
            return View();
        }
        public IActionResult Recruitment () {
            return View();
        }
        public IActionResult Test()
        {
            return View();
        }
        public IActionResult Founder()
        {
            return View();
        }

        public async Task<IActionResult> TimeLine()
        {
            Microsoft.EntityFrameworkCore.Query.IIncludableQueryable<Domain.TimeLine.TimeLine, Domain.TimeLine.Year> vm = _context.TimeLines.Include(t => t.YearNavigation);
            return View(await vm.ToListAsync());
        }

    }
}